package com.wcar.vipmanagement.controller;

import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.wcar.common.entity.UserBalanceLog;
import com.wcar.common.vo.Result;
import com.wcar.vipmanagement.service.impl.DetailServiceImpl;
import com.wcar.vipmanagement.vo.UserVo;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
@RequestMapping("/car")
public class DetailManagement {
    @Autowired
    private DetailServiceImpl detailService;
    @PostMapping("/DetailManagement")
    public Result<Page<UserBalanceLog>> DetailManagement(@RequestBody UserVo userVo){
        return detailService.getDetailList(userVo);
    }
}
